package org.kjtc.service;

import org.kjtc.entity.ChargingStation;
import org.kjtc.entity.Equipment;
import org.kjtc.mapper.EquipmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @ Author     ：Yellowong
 * @ Date       ：Created in 13:21 2018/12/10
 * @ Description：
 */

@Service("equipmentService")
public class EquipmentService {

    @Autowired
    private EquipmentMapper equipmentMapper;

    public List<Equipment> getEquipmentList(Equipment equipment) {
      return equipmentMapper.getEquipmentList(equipment);
    }

    public List<Map> equipmentStatusStatistics() {
        return equipmentMapper.equipmentStatusStatistics();
    }

    public List<ChargingStation> getChargingStationName(ChargingStation chargingStation) {
        return equipmentMapper.getChargingStationName(chargingStation);
    }

}
